package com.jizhi.controller;


import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.jizhi.entity.Inspectiontype;
import com.jizhi.service.InspectiontypeService;
import io.swagger.annotations.ApiOperation;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author 罗兆良
 * @since 2020-11-16
 */
@RestController
@RequestMapping("/inspectiontype")
public class InspectiontypeController {
    private static final Logger logger = LoggerFactory.getLogger(InspectiontypeController.class);
    @Resource
    private InspectiontypeService inspectiontypeService;

    @ApiOperation(value = "异步刷新查询检查类型", notes = "异步刷新查询检查类型")
    @GetMapping("/getAllInspectiontype")
    @ResponseBody
    public List<Inspectiontype> getAllDoctorPage() {
        List<Inspectiontype> inspectiontypeList = inspectiontypeService.selectAll();
        logger.info("查询成功=========>"+inspectiontypeList);
        return inspectiontypeList;
    }


}

